home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Drag and Drop < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  949 b   |  [TEXT/ttxt]

  1. Subject:     Drag and Drop
  2. Sent:        6/11/96 4:24 PM
  3. Received:    6/11/96 4:41 PM
  4. From:        Karl Jepsen, kjepsen@dharbor.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Our ODF part need to know if a drag operation ends up in the Trash or on
  9. the DeskTop.
  10. Outside of OpenDoc/ODF one can determine where a drop occured as shown by
  11. the following drag/drop code:
  12.         err = TrackDrag(theDrag, theEvent, dragRegion);
  13.    /**  Check to see if the drop occurred in the Finder's Trash.  **/
  14.         GetDragAttributes(theDrag, &attributes);
  15.         if (!(attributes & dragInsideSenderApplication))
  16.         {
  17.                 GetDropLocation(theDrag, &dropLocation);        // then get
  18. FSSpec from AEDesc
  19.        .......
  20.  
  21. Is there a way with ODF/OpenDoc to determine if a dragged item was dragged
  22. to the Trash or DeskTop?
  23.  
  24. Thank you,
  25.  
  26. Karl Jepsen
  27. Digital Harbor
  28.  
  29.  
  30.